package com.nidu.demo.dict.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.dict.dto.DictDataCO;
import com.nidu.demo.dict.mapper.dataobject.DictDataDO;
import com.nidu.demo.dict.model.DictData;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface DictDataConvertor extends BaseConvertor<DictDataDO, DictData, DictDataCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    DictDataDO toDataObject(DictData company);

}